<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Logger extends CI_Model {

    function __construct() {
        parent::__construct();        
    }

    public function log($kegiatan, $ref_tabel, $id_tabel) {
        $log_data = array(
                "kegiatan" => $kegiatan,
                "ref_tabel" => $ref_tabel,
                "id_tabel" => $id_tabel,
                "oleh" => "1" // todo - ganti menjadi session user
        );
        $this->db->insert('log_transaksi',$log_data);
        return true;
    }
}

/* End of file main.php */
/* Location: ./application/controllers/main.php */